﻿using PublicCommon;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace T_Material.Domain
{
    /// <summary>
    /// 物资入库
    /// </summary>
    [Table("Warehousing")]
    public class Warehousing: Audit
    {
        /// <summary>
        /// 物资入库ID
        /// </summary>
        [Key]
        public int  Id { get; set; }

        /// <summary>
        /// 货物名称
        /// </summary>
        public string? GoodsName { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        public string? TypeName { get; set; }

        /// <summary>
        /// 规格
        /// </summary>
        public string? Specs { get; set; }

        /// <summary>
        /// 产地（国家）
        /// </summary>
        public string? Country { get; set; }

        /// <summary>
        /// 产地（省）
        /// </summary>
        public string? Province { get; set; }

        /// <summary>
        /// 支付方式
        /// </summary>
        public string? ModeOfPayment { get; set; }

        /// <summary>
        /// 采购金额
        /// </summary>
        public decimal BuyMoney { get; set; }

        /// <summary>
        /// 登记人
        /// </summary>
        public string? RegPerson { get; set; } = "小亮";

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remarks { get; set; }
        
        /// <summary>
        /// 材质
        /// </summary>
        public string? MateriaQluality { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public int? Quantity { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        public decimal? Price { get; set; }
    }
}
